Fix require-final-newline interaction with read-only buffers.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)
commit98760c712f84cdd680ac867cc192ac7835c84452
treeeb4c9a433b2c4c39890d26778411de6496cab9ca
parent4459dbc2353cb11e52cab4c59eabf206f4fe5c80
Fix require-final-newline interaction with read-only buffers.

* lisp/files.el (after-find-file): Do not try to add a final newline
if the buffer is read-only.
lisp/ChangeLog
lisp/files.el